<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>销售经理统计列表</title>
<link href="<%=path%>/css/core.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/pagination.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/css/list.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/xToolbar.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/jquery-impromptu.css" rel="stylesheet"
	type="text/css" />
</head>
<body>
	<form id="listForm"
		action="<%=path%>/sales/salesCount/listPagination.t4m" method="post">
		<div id="toolbar">
			选择年:
			<s:select
				list="#{2011:'2011年',2012:'2012年',2013:'2013年',2014:'2014年',2015:'2015年',2016:'2016年',2017:'2017年',2018:'2018年',2019:'2019年',2020:'2020年'}"
				name="year" onchange="doSearch(this)"></s:select>
		</div>
		<table id="titleTable" cellpadding="0" cellspacing="0">
			<tr>
				<td>&nbsp;</td>
				<td>员工账号</td>
				<td>员工姓名</td>
				<td>一月</td>
				<td>二月</td>
				<td>三月</td>
				<td>四月</td>
				<td>五月</td>
				<td>六月</td>
				<td>七月</td>
				<td>八月</td>
				<td>九月</td>
				<td>十月</td>
				<td>十一月</td>
				<td>十二月</td>
				<td>总计</td>
			</tr>
		</table>
		<table id="dataTable" cellpadding="0" cellspacing="0">
			<s:iterator id="salesCount" value="page.list" status="i">
				<tr class="row">
					<td></td>
					<td><s:property value="#salesCount[0]" />
					</td>
					<td><s:property value="#salesCount[1]" />
					</td>
					<td align="right"><s:property value="#salesCount[2]" />
					</td>
					<td align="right"><s:property value="#salesCount[3]" />
					</td>
					<td align="right"><s:property value="#salesCount[4]" />
					</td>
					<td align="right"><s:property value="#salesCount[5]" />
					</td>
					<td align="right"><s:property value="#salesCount[6]" />
					</td>
					<td align="right"><s:property value="#salesCount[7]" />
					</td>
					<td align="right"><s:property value="#salesCount[8]" />
					</td>
					<td align="right"><s:property value="#salesCount[9]" />
					</td>
					<td align="right"><s:property value="#salesCount[10]" />
					</td>
					<td align="right"><s:property value="#salesCount[11]" />
					</td>
					<td align="right"><s:property value="#salesCount[12]" />
					</td>
					<td align="right"><s:property value="#salesCount[13]" />
					</td>
					<td align="right"><s:property value="#salesCount[14]" />
					</td>
				</tr>
			</s:iterator>
		</table>
		<s:hidden name="productTypeId" id="productTypeId" />
		<s:hidden name="productId" />
		<s:include value="/share/pagebar.jsp" />
	</form>

	<script src="<%=path%>/js/core.js" type="text/javascript"></script>
	<script src="<%=path%>/js/share.js" type="text/javascript"></script>
	<script src="<%=path%>/js/jquery.js" type="text/javascript"></script>
	<script src="<%=path%>/js/Grid.js" type="text/javascript"></script>
	<script src="<%=path%>/js/BoxSelect.js" type="text/javascript"></script>
	<script src="<%=path%>/js/xToolbar.js" type="text/javascript"></script>
	<script src="<%=path%>/js/xToolbar.items.js" type="text/javascript"></script>
	<script src="<%=path%>/js/jquery-impromptu.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(
				function() {
					new Grid({
						titleTable : 'titleTable',
						dataTable : 'dataTable',
						widths : [ 30, 100, 100, 80, 80, 80, 80, 80, 80, 80,
								80, 80, 80, 80, 80, 90 ],
						height : function() {
							return getGridHeight({
								toolbarId : 'toolbar',
								hasPage : true
							});
						}
					});
					loadReady();
				});
		function doSearch(arg) {
			document.getElementById("listForm").submit();
		}
	</script>
</body>
</html>